import request from '@/utils/request'

/*
 * 职工餐品
 */

// 职工餐品
export function teachFoodIndex(params) {
  return request({
    url: 'food_user/index',
    method: 'GET',
    params
  })
}

// 职工添加餐品
export function teachFoodAdd(data) {
  return request({
    url: 'food_user/add',
    method: 'POST',
    data:data
  })
}

// 职工编辑餐品
export function teachFoodEdit(data) {
  return request({
    url: 'food_user/edit',
    method: 'POST',
    data:data
  })
}

// 每日餐品类目
export function dishTypeindex(params) {
  return request({
    url: 'dish_type/index',
    method: 'GET',
    params
  })
}

// 每日餐品类目编辑
export function dishTypeEdit(data) {
  return request({
    url: 'dish_type/edit',
    method: 'POST',
    data:data
  })
}

// 陪餐模式 template/edit
export function templateEdit(data) {
  return request({
    url: 'template/edit',
    method: 'POST',
    data:data
  })
}

// 获取陪餐模式
export function templateDetail(params) {
  return request({
    url: 'template/edit',
    method: 'get',
    params
  })
}

// 陪餐时间修改
export function dishTimeEdit(data) {
  return request({
    url: 'dish_comment_user/time',
    method: 'POST',
    data:data
  })
}

// 家长陪餐记录
export function dish_comment_parent(params) {
  return request({
    url: 'dish_comment_parent/index',
    method: 'GET',
    params
  })
}

// 删除职工餐品
export function teachFoodDelete(data) {
  return request({
    url: 'food_user/delete',
    method: 'POST',
    data:data
  })
}

// 导入职工餐品 food_user_list/import
export function teachFoodImport(data) {
  return request({
    url: 'food_user_list/import',
    method: 'POST',
    data:data
  })
}

// 职工本周餐品
export function teachFoodWeek(data) {
  return request({
    url: 'food_user_list/now_week',
    method: 'POST',
    data:data
  })
}

// 本周餐品添加编辑当天餐品
export function teachFoodWeekAdd(data) {
  return request({
    url: 'food_user_list/add',
    method: 'POST',
    data:data
  })
}

// 本周餐品删除当天餐品
export function teachFoodWeekDelete(data) {
  return request({
    url: 'food_user_list/delete',
    method: 'POST',
    data:data
  })
}

// 餐品备注明细
export function foodCommentLog(params) {
  return request({
    url: 'food_user/comment_log',
    method: 'GET',
    params
  })
}

// 陪餐记录
export function dishIndex(params) {
  return request({
    url: 'dish_comment_user/index',
    method: 'GET',
    params
  })
}

// 教职工当日参评
export function todayComment(params) {
  return request({
    url: 'food_user_list/now_comment',
    method: 'GET',
    params
  })
}

// 教职工餐评总览
export function foodCount(params) {
  return request({
    url: 'food_user_list/ranking',
    method: 'GET',
    params
  })
}

// 材料管理-列表
export function a(params) {
  return request({
    url: 'food_user_list/ranking',
    method: 'GET',
    params
  })
}

// 材料管理-详情
export function b(params) {
  return request({
    url: 'food_user_list/ranking',
    method: 'GET',
    params
  })
}

// 材料管理-编辑
export function c(params) {
  return request({
    url: 'food_user_list/ranking',
    method: 'GET',
    params
  })
}

// 材料管理-删除
export function d(params) {
  return request({
    url: 'food_user_list/ranking',
    method: 'GET',
    params
  })
}

/*
 * 食品安全
 */
// 每日检查记录 food_check_day/index
export function dayCheckLogIndex(params) {
  return request({
    url: 'food_check_day/index',
    method: 'GET',
    params
  })
}

// 每日检查项
export function dayCheckOptionIndex(params) {
  return request({
    url: 'food_check_day_option/index',
    method: 'GET',
    params
  })
}

// 每日检查项添加
export function dayCheckOptionAdd(data) {
  return request({
    url: 'food_check_day_option/add',
    method: 'POST',
    data:data
  })
}

// 每日检查项详情
export function dayCheckOptionDetail(params) {
  return request({
    url: 'food_check_day_option/edit',
    method: 'GEt',
    params
  })
}

// 每日检查项编辑
export function dayCheckOptionEdit(data) {
  return request({
    url: 'food_check_day_option/edit',
    method: 'POST',
    data:data
  })
}

// 每日检查项删除
export function dayCheckOptionDelete(data) {
  return request({
    url: 'food_check_day_option/delete',
    method: 'POST',
    data:data
  })
}

// 每周排查项目
export function weekCheckOptionIndex(params) {
  return request({
    url: 'food_check_week_option/index',
    method: 'GET',
    params
  })
}

// 每周排查添加
export function weekCheckOptionAdd(data) {
  return request({
    url: 'food_check_week_option/add',
    method: 'POST',
    data:data
  })
}

// 每周排查详情
export function weekCheckOptionDetail(params) {
  return request({
    url: 'food_check_week_option/edit',
    method: 'GEt',
    params
  })
}

// 每周排查编辑
export function weekCheckOptionEdit(data) {
  return request({
    url: 'food_check_week_option/edit',
    method: 'POST',
    data:data
  })
}

// 每周排查项删除
export function weekCheckOptionDelete(data) {
  return request({
    url: 'food_check_week_option/delete',
    method: 'POST',
    data:data
  })
}

// 餐评看板 release_log/classes
export function release_log_data(params) {
  return request({
    url: 'release_log/classes',
    method: 'GET',
    params
  })
}

// 删除配餐记录单天单条
export function dish_comment_delete(data) {
  return request({
    url: 'dish_comment_user/delete',
    method: 'POST',
    data:data
  })
}

// 光盘学生信息
export function plate_student(params) {
  return request({
    url: 'clear_plate_student/index',
    method: 'GET',
    params
  })
}

// 光盘学生信息删除
export function plate_student_delete(data) {
  return request({
    url: 'clear_plate_student/delete',
    method: 'POST',
    data:data
  })
}

// 光盘班级信息
export function plate_class(params) {
  return request({
    url: 'clear_plate_class/index',
    method: 'GET',
    params
  })
}

// 光盘班级信息删除
export function plate_class_delete(data) {
  return request({
    url: 'clear_plate_class/delete',
    method: 'POST',
    data:data
  })
}
// 每周食谱意见反馈列表
export function food_feedback_list(params) {
  return request({
    url: 'food_feedback_parent/index',
    method: 'GET',
    params
  })
}
// 每周食谱学校列表
export function school_list(params) {
  return request({
    url: 'school/index',
    method: 'GET',
    params
  })
}
// 学生周餐饮模板导入
export function release_import_student(params) {
  return request({
    url: 'release_import/import',
    method: 'GET',
    params
  })
}

// dish_weight/index 带量食谱
// dish_weight/add
export function hot_food_list(params) {
  return request({
    url: 'dish_weight/index',
    method: 'GET',
    params
  })
}

//
export function hot_food_add(data) {
  return request({
    url: 'dish_weight/add',
    method: 'POST',
    data:data
  })
}

// dish_weight/edit  get查看post修改
// dish_weight/delete
// 详情
export function hot_food_detail(params) {
  return request({
    url: 'dish_weight/edit',
    method: 'get',
    params
  })
}

// 编辑
export function hot_food_edit(data) {
  return request({
    url: 'dish_weight/edit',
    method: 'POST',
    data:data
  })
}

// 删除
export function hot_food_delete(data) {
  return request({
    url: 'dish_weight/delete',
    method: 'POST',
    data:data
  })
}
